package cn.lili.modules.channel.serviceimpl;

import cn.lili.modules.channel.entity.Channel;
import cn.lili.modules.channel.mapper.ChannelMapper;
import cn.lili.modules.channel.service.ChannelService;
import cn.lili.modules.permission.entity.dos.AdminUser;
import cn.lili.modules.permission.entity.vo.AdminUserVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p></p>
 * @since 2023/4/8 17:26
 */
@Service
public class ChannelServiceImpl extends ServiceImpl<ChannelMapper, Channel> implements ChannelService {

	@Override
	public IPage<Channel> channelList(Page initPage, QueryWrapper<Channel> initWrapper) {
		Page<Channel> page = page(initPage, initWrapper);
		Page<Channel> pageResult = new Page(page.getCurrent(), page.getSize(), page.getTotal());
		pageResult.setRecords(page.getRecords());
		return pageResult;
	}
}
